package com.xueba.manage.course;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

/**
 * @author Kidy
 * @date 2020/7/31 09:44
 */
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients
@EntityScan("com.xueba.framework.domain.course")//扫描实体类
@ComponentScan(basePackages = {"com.xueba.api"})//扫描接口
@ComponentScan(basePackages = {"com.xueba.manage.course"})
@ComponentScan(basePackages = {"com.xueba.framework.common"})//扫描common下的所有类
public class ManageCourseApplication {
    public static void main(String[] args){
        SpringApplication.run(ManageCourseApplication.class, args);
    }
}
